import { post } from "@/utils/http";


//1.定义用户接口的路径前缀
enum Api{
    Login="/login"
}


//2.定义登录接口的请求的参数
interface LoginParams{
    username:string;
    password:string
}



function loginApi(data:LoginParams):Promise<any>{
    return post(Api.Login,data)
}

export {loginApi}

